#include <bits/stdc++.h>
using namespace std;
int a1[2010],a2[2010],a3[4020];
int main(){
    string s1,s2;
    cin>>s1>>s2;
    int index=s1.size()+s2.size();
    for (int i = 0; i < s1.size(); i++)
    {
        a1[s1.size()-i]=s1[i]-'0';
    }
    for (int i = 0; i < s2.size(); i++)
    {
        a2[s2.size()-i]=s2[i]-'0';
    }
    for (int i = 1; i <= index; i++)
    {
        for (int j = 1; j <= index; j++)
        {
            a3[i+j-1]+=a1[i]*a2[j];
            a3[i+j]+= a3[i+j-1]/10;
            a3[i+j-1] %=10;
        }
        
    }

    while (!a3[index] && index>1)
    {
        index--;
    }
    // for (int i = index; i >= 1; i--){
    //     cout<<a3[i];
    // }    
    cout<<a3[2535];
    return 0;
}